home *** CD-ROM | disk | FTP | other *** search
-
- LaserJet Lister Utility
- Version 2.0
- Copyright (c) 1987 by Joe Barnhart
-
- This file, LJ2UP.EXE, is a utility that prints ASCII text files in "2-up"
- (two pages on each piece of paper) format on a Hewlett-Packard LaserJet
- (or LaserJet+) printer. To run this program, you need a font cartridge
- with the Line Printer font in landscape form. Many cartridges contain this
- font, such as the HP 92286A font cartridge. (Neither the LaserJet nor
- the LaserJet+ have this font built in.)
-
- To print a file, or a series of files, invoke LJ2UP from the command line:
-
- A>LJ2UP [-dtpvsoi] file1 file2 file3 ...
-
- Each filename may contain wildcards ('*' and '?') and path specifications.
- The optional switches are:
-
- d Supress the date and time stamp at the bottom of the page.
- tN Set tab stops every N columns.
- pN Set print length to N lines (add 2 lines for date stamp).
- v Turn OFF the vertical line that separates pages.
- s Enable PC/Forth "screenfile" mode.
- oName Re-direct the output to a device or file.
- i "IBM" file mode: 66 lines/page, no form-feeds
- else Any other character prints the command usage on the console.
-
-
- The defaults are:
-
- Date and time stamping ON.
- Tabs every 8 columns.
- Print length 56 lines.
- Vertical separator line ON.
- Screenfile mode OFF.
- Printer device PRN:
-
-
- Here are some examples:
-
- LJ2UP -dp60 JUNK.TXT Print JUNK.TXT with 60 lines/page, no date.
- LJ2UP -oCOM1 \*.C Print files *.C and JOE.* to device COM1.
- LJ2UP -s *.SCR Prints all ".SCR" screenfiles in current dir.
-
-
- To save time, put several file specifications on one line:
-
- LJ2UP A:*.PAS \MSC\WORK\*.C C:\PUBLIC\*.DOC
- LJ2UP -s C:\LMI\*.SCR D:\URFORTH\*.SCR
-
- As a special treat, you may define your own default preferences and make
- them known to LJ2UP through an environment variable named "LJ". For
- example:
-
- SET LJ=-dp60oLPT1 Put this line in AUTOEXEC.BAT
-
- The above command causes LJ2UP to default to <no datestamp>, <60 lines/page>,
- and <output to LPT1>. You may use this feature to customize LJ2UP without
- actually patching the code. In the environment variable, the options must
- be specified without intervening spaces.
-
- When defining the number of lines per page, be aware that the date stamp
- requires two lines. Therefore, defining a page length of 60 lines with date
- stamping ON will result in 58 printable lines on each page. If there are form
- feeds imbedded in the file, they will cause the lister to skip to the top of
- the next page (which could be on the same piece of paper).
-
- The "IBM" file mode is for text files that assumes 66 lines/page (60 printable)
- and does not include any form-feeds. These files are most commonly seen as
- ".DOC" files for shareware and such. Note that the -i flag overrides the -p
- and -d settings.
-
- I am retaining the legal copyright to this program, but you may use it without
- incurring any financial obligation. In other words, the use of this program
- is FREE. The use of this program is free because I have spent many enjoyable
- hours using programs that were provided in the public domain by authors like
- Ward Christensen. I hope that you have as much fun with this program.
-
- Thanks to my friend Ray Duncan for his MS-DOS magic and Microsoft C mastery,
- and to Allen Holub and Dr. Dobb's Journal for the functions GETARGS.C and STOI.C
- used in this program.
-
- Joe Barnhart
- 1470 Townview Ave.
- Santa Rosa, CA 95405
- Compuserve 76174,1573
- (no donations accepted)